package com.cd.javacxy.module.web.dao;

import com.cd.javacxy.common.model.entity.CxyTopic;
import com.cd.javacxy.common.model.query.TopicQuery;
import com.cd.javacxy.common.model.query.UpdateQuery4ArticleCount;

import java.util.List;

/**
 * CxyTopic的Dao接口
 *
 * @author yanghy
 */
public interface CxyTopicDao {

    int selectCount(TopicQuery topicQuery);

    List<CxyTopic> selectList(TopicQuery topicQuery);

    List<CxyTopic> selectActiveUser4Topic();

    int updateInfoCount(UpdateQuery4ArticleCount updateQuery4ArticleCount);

    int insert(CxyTopic topic);
}